﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LambdaProj
{
    public class Patent
    {
        public string Title { set; get; }
        public string YearOfPublication { set; get; }
        public string ApplicationNumber { set; get; }
        public long[] InventorIds { set; get; }
        public override string ToString()
        {
            //return base.ToString();
            return string.Format("{0}({1})", Title, YearOfPublication);
        }
    }

    public class Invertor
    {
        public int ID { set; get; }
        public string Name { set; get; }
        public string City { set; get; }
        public string State { set; get; }

        public string Country { set; get; }
        public override string ToString()
        {
            //return base.ToString();
            return string.Format("{0}({1},{2})", Name, City, State);
        }
    }

    public static class PatentData
    {
        public static readonly Invertor[] Invertors
         = new Invertor[] { 
           new Invertor(){
            State = "PA", City = "Jinam", Name = "Zhuo", Country = "China", ID = 1
           },
           new Invertor(){
            State = "PA", City = "Jinam", Name = "Zhuo", Country = "China", ID = 2
           },
           new Invertor(){
            State = "PA", City = "Jinam", Name = "Zhuo", Country = "China", ID = 3
           },
           new Invertor(){
            State = "PA", City = "Jinam", Name = "Zhuo", Country = "China", ID = 4
           },
           new Invertor(){
            State = "PA", City = "Jinam", Name = "Zhuo", Country = "China", ID = 5
           }
         };

        public static readonly Patent[] Patents = new Patent[] { 
          new Patent(){
           YearOfPublication = "1900", Title = "Bin", ApplicationNumber = "10", InventorIds= new long[]{1}
          },
          new Patent(){
           YearOfPublication = "1900", Title = "Bin", ApplicationNumber = "10", InventorIds= new long[]{1}
          },
          new Patent(){
           YearOfPublication = "1988", Title = "Bin", ApplicationNumber = "10", InventorIds= new long[]{1}
          },
          new Patent(){
           YearOfPublication = "1987", Title = "Bin", ApplicationNumber = "10", InventorIds= new long[]{1}
          },
          new Patent(){
           YearOfPublication = "1986", Title = "Bin", ApplicationNumber = "10", InventorIds= new long[]{1}
          },
          new Patent(){
           YearOfPublication = "1985", Title = "Bin", ApplicationNumber = "10", InventorIds= new long[]{1}
          }
        };
    }
}
